package com.ltmonitor.jt809.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * 查岗记录
 * @author DELL
 *
 */

@Entity
@Table(name="CheckRecord")
@org.hibernate.annotations.Proxy(lazy = false)
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) 
public class CheckRecord {
	//已创建
	public static int STATUS_NEW = 0;
	//上级平台已下发查岗
	public static int STATUS_SEND = 1;
	
	//下级平台已应答
	public static int STATUS_ANSWERED = 2;
	//没有连接
	public static int STATUS_NOT_CONNECTED = 3;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	private long entityId;
	public  long getEntityId() {
		return entityId;
	}
	public  void setEntityId(long value) {
		entityId = value;
	}
	//查岗的平台Id
	private long platformId;
	
	//业务类型
	private int objType;
	//查干对象
	private String objId;
	//信息Id
	private int infoId;
	//查岗问题
	private String message;
	//记录状态
	private int status;
	//回答
	private String answer;
	//创建时间
	private Date createDate;
	//更新时间
	private Date updateDate;
	
	public CheckRecord()
	{
		createDate = new Date();
		updateDate = new Date();
	}

	public CheckRecord(CheckRecord pm)
	{
		objType = pm.getObjType();
		objId = pm.getObjId();
		infoId = pm.getInfoId();
		message = pm.getMessage();
	}
	




	public String getMessage() {
		return this.message;
	}

	public int getObjType() {
		return this.objType;
	}

	public void setObjType(int objType) {
		this.objType = objType;
	}

	public String getObjId() {
		return this.objId;
	}

	public void setObjId(String objId) {
		this.objId = objId;
	}

	public int getInfoId() {
		return this.infoId;
	}

	public void setInfoId(int infoId) {
		this.infoId = infoId;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public long getPlatformId() {
		return platformId;
	}
	public void setPlatformId(long platformId) {
		this.platformId = platformId;
	}

}
